package com.zyl.blog.tasks;

import com.zyl.blog.common.utils.Extreme.LogUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.tasks
 * @ClassName: TaskApplication
 * @Description: 定时任务启动模块
 * @Author FinalFantasy
 * @Date 2025/8/12-09:21
 */
@SpringBootApplication(
        scanBasePackages = {
                "com.zyl.blog.tasks.*",
                "com.zyl.blog.common.handler"
        }
)
@EnableScheduling
@EnableCaching
@EnableDiscoveryClient
@EnableTransactionManagement
public class TaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(TaskApplication.class, args);
        LogUtil.info("定时任务模块启动成功");
    }

}
